package com.huashi.dealer.modular.business.user.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 对账单
 *
 * @author 谭陈强
 * @since 2025-07-30
 */
@Data
@Schema(description = "对账单")
public class StatementAccount {

    @Schema(description = "开始日期")
    private String startDate;

    @Schema(description = "结束日期")
    private String endDate;

    @Schema(description = "总收入")
    private BigDecimal totalIncome;

    @Schema(description = "总支出")
    private BigDecimal totalExpense;

    @Schema(description = "净收入")
    private BigDecimal netIncome;

    @Schema(description = "订单数量")
    private Integer orderCount;

    @Schema(description = "订单列表")
    private List<OrderInfo> orderList;

    @Data
    @Schema(description = "订单信息")
    public static class OrderInfo {
        @Schema(description = "订单ID")
        private Long orderId;

        @Schema(description = "订单号")
        private String orderNo;

        @Schema(description = "订单金额")
        private BigDecimal orderAmount;

        @Schema(description = "支付金额")
        private BigDecimal payAmount;

        @Schema(description = "订单状态")
        private Integer orderStatus;

        @Schema(description = "创建时间")
        private LocalDateTime createTime;
    }
} 